package online.foxnull2.foxmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import online.foxnull2.foxmall.product.entity.AttrGroupEntity;
import online.foxnull2.foxmall.product.utils.PageUtils;
import online.foxnull2.foxmall.product.vo.AttrGroupRelationVo;
import online.foxnull2.foxmall.product.vo.AttrGroupWithAttrsVo;
import online.foxnull2.foxmall.product.vo.skuItem.SpuItemAttrGroup;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author foxnull2
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteRelations(List<AttrGroupRelationVo> attrGroupRelationVoList);

    List<AttrGroupWithAttrsVo> listAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SpuItemAttrGroup> listAttrGroupWithAttrsBySpuIdAndCatalogId(Long spuId, Long catalogId);
}

